<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>学院信息</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
			<link rel="stylesheet" type="text/css" href="styles.css">
		-->
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/css/H-ui.admin.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/lib/Hui-iconfont/1.0.7/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/lib/icheck/icheck.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/skin/default/skin.css" id="skin" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>scripts/static/h-ui.admin/css/style.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>styles/page.css" />
		<script type="text/javascript" src="<%=basePath %>scripts/jquery-1.9.1.js"></script> 
		<script type="text/javascript" src="<%=basePath %>scripts/lib/layer/2.1/layer.js"></script>
		<script type="text/javascript" src="<%=basePath %>scripts/static/h-ui/js/H-ui.js"></script> 
		<script type="text/javascript" src="<%=basePath %>scripts/static/h-ui.admin/js/H-ui.admin.js"></script>
		<script type="text/javascript" src="<%=basePath %>scripts/jquery.page.js"></script>
		<script type="text/javascript">
			
		</script> 
	</head>
	<body>
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 
		首页 <span class="c-gray en">&gt;</span> 
		试卷管理 <span class="c-gray en">&gt;</span>
		试卷成绩<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="text-c">
		<span class="select-box inline">
			<select id="college" style="width:300px;" name="" class="select">
				<option value="pick">请选择学院</option>
			</select>
			<select id="major" style="width:300px;" name="" class="select">
				<option>请选择专业</option>
			</select>
		</span>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<span class="l"><a href="javascript:;" onclick="deleteCourceList(this)" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
		<a class="btn btn-primary radius" data-title="添加课程" onclick="addCource()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加课程</a>
		<a class="btn btn-primary radius" data-title="数据导入" onclick="importCource()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 数据导入</a>
		<a class="btn btn-primary radius" data-title="数据导入" onclick="exportCource()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 数据导出</a>
		</span> 
		<span class="r">共有数据：<strong>${pageModel.totalrows }</strong> 条</span> 
	</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="25">序号</th>
					<th width="100">学号</th>
					<th width="120">姓名</th>
					<th width="100">试卷名</th>
					<th width="100">所属课程</th>
					<th width="25">分数</th>
					<th width="80">操作</th>
				</tr>
			</thead>
			<c:choose>
			<c:when test="${pageModel.totalrows==0 }">
				<tbody>
					<tr class="text-c">
						<td colspan="9">没有数据</td>
					</tr>
				</tbody>
			</c:when>
			<c:otherwise>
				<tbody>
					<c:forEach items="${pageModel.list }" var="examScore" varStatus="L">
						<tr class="text-c">
							<td><input type="checkbox" value="${examScore.student.studentNo }" id="gradeArray" name="array"></td>
							<td>${L.index+1 }</td>
							<td>${examScore.student.studentNo }</td>
							<td>${examScore.student.studentName }</td>
							<td>${examScore.examPaperInfo.examPaperName }</td>
							<td>${examScore.examPaperInfo.cource.courceName }></td>
							<td>${examScore.score }</td>
							<td class="f-14 td-manage"> 
								<a style="text-decoration:none" class="ml-5" onClick="deleteCource(this,'${cource.courceNo }')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</c:otherwise>
			</c:choose>
			<c:if test="${pageModel.totalpages>0}">
				<tfoot>
				<tr class="text-c">
					<td colspan="7">
						<div class="tcdPageCode"></div>
						<script>
    						$(".tcdPageCode").createPage({
        							pageCount:${pageModel.totalpages},
        							current:${pageModel.currentpage},
        							backFn:function(p){
        								var key = '${pageModel.keyword}';
        								if(key==""){
        									window.location.href='<%=basePath%>cource/loadCource?p='+p;
        								}else{
        									window.location.href='<%=basePath%>cource/loadCource?key='+key+'&p='+p;
        								}
        							}
    						});
						</script>
					</td>
				</tr>
				</tfoot>
			</c:if>
		</table>
	</div>
</div>
	</body>
</html>